package kr.co.doriclassic.chapter22;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

public class SetTest {
	public static void main(String[] args) {
		HashSet<String> hashSet = new HashSet<>();
		hashSet.add("A");
		hashSet.add("B");
		hashSet.add("C");
		hashSet.add("A");
		
		System.out.println(hashSet);
		
		Set<String> tree = new TreeSet<>();
		tree.add("C");
		tree.add("B");
		tree.add("D");
		tree.add("A");
		System.out.println(tree);
	}
	
	
	
}
